package com.guldan.jaina.provider;

import java.util.List;

import com.guldan.core.dubbo.client.ResponseDTO;
import com.guldan.core.search.Pagination;
import com.guldan.jaina.dto.dicType.DicTypeDTO;
import com.guldan.jaina.dto.dictionary.DictionaryDTO;
import com.guldan.jaina.dto.dictionary.DictionarySearchDTO;

/**
 * Created by Silas.
 * Date: 2016/11/7
 * Time: 22:49
 */
public interface IDictionaryProvider {

    //获取单个字典，传入：dictionaryId
    ResponseDTO<DictionaryDTO> get(Integer dictionaryId);

    //新增/更新单个字典，传入：DictionaryDTO
    ResponseDTO<DictionaryDTO> save(DictionaryDTO dictionaryDTO);

    //删除单个字典，传入：dictionaryId
    ResponseDTO<Boolean> delete(Integer dictionaryId);

    //分页获取字典信息列表，传入：检索DTO
    ResponseDTO<Pagination<DictionaryDTO>> list(DictionarySearchDTO dictionarySearchDTO);

    //不分页全部获取字典信息列表，传入：检索DTO
    ResponseDTO<List<DictionaryDTO>> all(DictionarySearchDTO dictionarySearchDTO);
}
